#include <iostream>
using namespace std;
int main()
{
    int t, n;
    cin >> t;
    for (int i = 0; i < t; i++)
    {
        int time = 0;
        cin >> n;
        if (n == 1)
        {
            time = 2;
            cout <<time<<endl;
            continue;
        }
        else
        time = (int )ceil(n*1.0/3);

        cout << time << endl;
        time = 0;
    }

    return 0;
}
/*

5
23
8
45
15
67


*/